<%@ page language="java" pageEncoding="utf-8" contentType="text/html;charset=utf-8" %>
<%@ page isELIgnored="false" %> 
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ include file="/WEB-INF/common/taglibs.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <%@ include file="/WEB-INF/common/meta.jsp" %>
        <title><decorator:title/> | <fmt:message key="webapp.name"/></title>
		
        <link rel="stylesheet" type="text/css" media="all" href="<c:url value='/styles/${appConfig["csstheme"]}/theme.css'/>" />
        <link rel="stylesheet" type="text/css" media="print" href="<c:url value='/styles/${appConfig["csstheme"]}/print.css'/>" />

        <script type="text/javascript" src="<c:url value='/js/plugins//jquery-1.7.1.min.js'/>"></script>
        <script type="text/javascript" src="<c:url value='/js/plugins/jquerytools/jquery.tools.min.js'/>"></script>
        
        <decorator:head/>
    </head>
	<body<decorator:getProperty property="body.id" writeEntireProperty="true"/><decorator:getProperty property="body.class" writeEntireProperty="true"/>>

    <div id="page">
        <div id="header" class="clearfix">
            <jsp:include page="/WEB-INF/common/header.jsp"/>
        </div>

        <div id="content" class="clearfix">
            <div id="main">
                <%@ include file="/WEB-INF/common/messages.jsp" %>
                <h1><decorator:getProperty property="meta.heading"/></h1>
                <decorator:body/>
            </div>
            <!-- 根据装饰页进行判断 -->
            <c:set var="currentMenu" scope="request" ><decorator:getProperty property="meta.menu"/></c:set>
            <c:if test="${currentMenu == 'AdminMenu'}">
            <div id="sub">
            	<!-- bundle="org.apache.struts.action.MESSAGE" -->
				<demo:menuDisplayer name="FreemarkerMenu" config="/WEB-INF/component/menu/simple.ftl" bundle="messageSource" >
                    <demo:menu name="AdminMenu"/>
                </demo:menuDisplayer>
            </div>
            </c:if>
            <div id="nav">
                <div class="wrapper">
                    <h2 class="accessibility">Navigation</h2>
                    <jsp:include page="/WEB-INF/common/menu.jsp"/>
                </div>
                <hr/>
            </div><!-- end nav -->
        </div>
	
		<!-- 分页 -->
		<demo:pageDisplayer name="FreemarkerPage" page="/demo/Test_list.action" config="/WEB-INF/component/page/around.ftl" bundle="messageSource"/>		
        <div id="footer" class="clearfix">
            <jsp:include page="/WEB-INF/common/footer.jsp"/>
        </div>
    </div>
</body>
</html>